import 'package:flutter/material.dart';

void main() {
  getData();
  print(3);
}

getData() async {
  print(1);
  await Future(() {
    for (int i = 0; i < 100000000; i++) {}
    throw Exception('Error');
    return 123;
  }).then((value) => print(value)).catchError((error) => print(error));
  // Future.wait([Future(() => 1), Future(() => 2)]).then((value) => print(value));
  // Future.any([Future(() => 1), Future(() => 2)]).then((value) => print(value));
  print(2);
}
